<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:substituteby="template::docHead(#{system.name},'首页')">
</head>
<body>
<script type="text/javascript" th:substituteby="main.js::js"></script>
<style type="text/css">
    html {
        height: 100%
    }

    body {
        height: 100%;
        margin: 0px;
        padding: 0px
    }

    #container {
        height: 750px;
    }

    .myRow {
        margin: 0 auto;
        border-bottom: 1px solid #CCCCCC;
        padding: .5em;
    }
</style>
<nav th:replace="template::nav"></nav>
<div class="row" style="margin-top: 5em;">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3">
                <form th:action="@{/saveuser}">
                    <input type="hidden" name="access_token" th:value="${accessToken}"/>
                    <input type="hidden" name="id" th:value="${vo==null?'':vo.id}"/>
                    <div class="row">
                        <div class="col-sm-12 col-md-12">
                            <div class="panel panel-primary">
                                <div class="panel-heading">基本信息</div>
                                <div class="panel-body">
                                    <div class="row" style="margin-top: .5em;">
                                        <div class="col-sm-4 col-md-4">
                                            <div class="input-group" style="margin-bottom: .5em;">
                                                <span class="input-group-addon">名称</span>
                                                <input id="name" name="name" class="form-control" placeholder="名称"
                                                       aria-describedby="basic-username" th:value="${vo!=null?vo.name:''}"
                                                       type="text"/>
                                            </div>
                                        </div>
                                        <div class="col-sm-4 col-md-4">
                                            <div class="input-group" style="margin-bottom: .5em;">
                                                <span class="input-group-addon">编号</span>
                                                <input id="number" name="number" class="form-control" placeholder="客户编号"
                                                       aria-describedby="basic-username" th:value="${vo!=null?vo.number:''}"
                                                       type="text"/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-4 col-md-offset-4">
                            <button type="submit" class="btn btn-primary navbar-btn" value="">
                                <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
                                保存
                            </button>
                            &nbsp;
                            <a th:href="@{/main(access_token=${accessToken})}" class="btn btn-primary navbar-btn">
                                <span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
                                取消
                            </a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>